 <!DOCTYPE html>

<html>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<head>



    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">





    <title>财务管理</title>

    <meta name="keywords" content="">

    <meta name="description" content="">



    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">

    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">

    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">

    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">

  <link href="__PUBLIC__/css/page.css" rel="stylesheet">

    <link href="__PUBLIC__/css/new.css" rel="stylesheet">

  

  <script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>

    <script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



   <script type="text/javascript">

    function page(n,s){

      var search_number=$('#search_number').val();

      var salesman = $('#salesman').val(); 

      var is_finish = $('#is_finish').val(); 

      var delivery_time_start=$('#start').val();

      var delivery_time_end=$('#end').val();

      var customer_name=$('#customer_name').val();

	  var tracking_number = $("#tracking_number").val();

      var asc=$('#asc').val();

      location.href='financial_management?pageNo='+n+'&pageSize='+s+'&search_number='+search_number+'&is_finish='+is_finish+'&salesman='+salesman+'&delivery_time_start='+delivery_time_start+'&delivery_time_end='+delivery_time_end+'&customer_name='+customer_name+'&tracking_number='+tracking_number;

        return false;

      }

    

    function dele(id)

    {

        layer.confirm('确定要删除吗？',

                    {btn:['确定','取消']},

              function(){

                

                location.href="goods_delete/id/"+id

              }),

				  

				  function(){return false;} 

				  

		}

	

	  </script>

	

	</head>



<body class="gray-bg" style="width:1400px; overflow:auto;">

    <div class="wrapper wrapper-content animated fadeInRight">

         

        <div class="row">

            <div class="col-sm-12">

                <div class="ibox float-e-margins">

                    <div class="ibox-title">

                        <h5>财务管理</h5>

                        

                    </div>

                    <div >

                    <form id="searchForm" class="form-inline" method="get" action="" >

          <div class="row">

                            

                            <div class='search'>

                               <input class="form-control input-sm cycle_start" placeholder="开始时间" name='delivery_time_start' id='start' onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="{$delivery_time_start}">						到

                               <input class="form-control input-sm cycle_end" placeholder="结束时间" name='delivery_time_end' id='end' onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="{$delivery_time_end}"> 

                                <input class="form-control input-sm" placeholder="输入订单号查询" name="search_number" id="search_number"  value="{$search_number}" >

                                

                               

                                

                                <!--<input class="form-control input-sm" placeholder="输入完成日期查询" name="delivery_time" id="delivery_time"  value="" >-->

                                <input class="form-control input-sm" name="pageNo" id="pageNo"  value="{$pageNo}" type="hidden">

                                <input class="form-control input-sm" name="pageSize" id="pageSize"  value="{$pageSize}" type="hidden" >

                                

                                <input class="form-control input-sm" placeholder="输入客户名称查询" name="customer_name" id="customer_name"  value="{$customer_name}" >

                                <input class="form-control input-sm" placeholder="输入快递单号查询" name="tracking_number" id="tracking_number"  value="{$tracking_number}" >

                                <select class="form-control" style="margin-top:-5px;" name="salesman" id="salesman">

                                	<option value="0">请选择业务员</option>

                                	<foreach name="salesman_list" item="salesman">

                                    	<option value="{$salesman.salesman}" <if condition="$salesman_selected eq $salesman['salesman']"> selected </if> >{$salesman.salesman}</option>

                                    </foreach>

                                </select>

                                

                                 <select class="form-control" style="margin-top:-5px;" name="is_finish" id="is_finish">

                                	<option value="1" <if condition="$is_finish eq '1'">selected</if> >已完成</option>

                                	<option value="" <if condition="$is_finish eq ''">selected</if> >未完成</option>

                                </select>

                                

                  <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>

                <a class="btn btn-white btn-sm " href="javascript:window.location.reload(true);" data-toggle="tooltip" data-placement="left"   title="刷新"> <i class="glyphicon glyphicon-repeat"></i> 刷新</a>  

                  

                            </div>

                        </div>

              </form>

            <form action="" method='post' >

                        <table class="table table-bordered table-striped table-hover">

                            <thead>

                              <tr>

                              <th><input class="check-all" type="checkbox" value=""/></th>

                              <th>业务员</th>

                              <th>发货日期</th>

                              <th>订单号</th>

                              <th>客户名称</th>

                              <th>折扣率</th>

                              <th>折后货值</th>

                              <th>收取运费</th>

                              <th>总金额</th>

                              <th>查看明细</th>

                              <th>收款情况</th>

                              <th>实际运费</th>

                              <th>收货人</th>

                              <th>快递单号</th>

                              <th>采购成本</th>

                              <th>毛利润</th>

                              <th>毛利润率</th>

                              <th>备注</th>

                              <th>操作</th>

                              <th>审核状态</th>

                                </tr>

                            </thead>

                            <tbody>

                            <foreach name="order_list" item="order" key="k">

                            	<tr>

                                    <td>

                                    	<input class="i-checks" type="checkbox" name="ids" value="{$order.id}" />

                                    	<input class="i-checks" type="hidden" name="id" value="{$order.id}" />

                                    </td>

                                    <td>{$order.salesman}</td>

                                    <td><?php echo date("Y-m-d",strtotime($order_list[$k]['delivery_time']));?></td>

                                    <td>{$order.order_number}</td>

                                    <td>{$order.customer_name}</td>

                                    <td>{$order.discount_rate}</td>

                                    <td>{$order.discount_price}</td>

                                    <td>{$order.feright}</td>

                                    <td>{$order.total_price}</td>

                                    <td><a class="btn btn-sm btn-primary add" title="查看明细" href="{:U('order_details',array('id'=>$order['id']))}" >查看明细</a></td>

                                    <td>{$order.pay_info}</td>

                                    <td><if condition="$order.actual_feright neq null">{$order.actual_feright}</if></td>

                                    <td>{$order.consignee}</td>

                                    <td><if condition="$order.tracking_number neq null">{$order.tracking_number}</if></td>

                                    <td>{$order.total_cost}</td>

                                    <td>{$order.gross_profit}</td>

                                    <td>{$order.percentage}</td>

                                    <td>{$order.remarks}</td>

                                    <td>

                      					<a class="btn btn-sm btn-primary" href="{:U('financial_remark',array('order_number'=>$order['order_number']))}">编辑</a>

                    				</td>

                                    

                                    <td>

                                    	<if condition="$order.is_finish eq '1'">

                      						<input type="button" value='已完成'  class="btn btn-primary" />

                                        <else />

                                        	<a class="btn btn-sm btn-primary" href="{:U('finish',array('id'=>$order['id']))}">完成</a>

                                        </if>

                    				</td>

                                    <!--<td class='edit' nameval='code' width='10%'><a class="btn btn-sm btn-primary" title="标记"  onclick="edit('')">标记</a></td>-->

                                </tr>

                            </foreach>

                            </tbody>

                        </table>

                        <table width="100%" border="0">

                          <tr>

                            <td >

                            <a class="btn btn-sm btn-primary" title="批量完成" id="finish_All" >批量完成</a>&nbsp

                           <a class="btn btn-sm btn-primary" title="批量导出" id="daochu_management" >批量导出</a>&nbsp 

                          </tr>

                        </table><br/>

             

            </form>

            

  <!-- 分页代码 -->

<div class="fixed-table-pagination" style="display: block;">

  <div class="pull-left pagination-detail">

    <span class="pagination-info">显示第 1 到第 {$count.pageSize} 条记录，总共 {$count.count} 条记录</span>

    <span class="page-list">每页显示 

      <span class="btn-group dropup">

        <button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">

          <span class="page-size">{$count.pageSize}</span> <span class="caret"></span></button>

          <ul class="dropdown-menu" role="menu">

          <li class="<if condition=" $count.pageSize eq 10"> active </if>"><a href="javascript:page(1,10,'');">10</a></li>

          <li class="<if condition=" $count.pageSize eq 25"> active </if>"><a href="javascript:page(1,25,'');">25</a></li>

          <li class="<if condition=" $count.pageSize eq 50"> active </if>"><a href="javascript:page(1,50,'');">50</a></li>

          <li class="<if condition=" $count.pageSize eq 100"> active </if>"><a href="javascript:page(1,100,'');">100</a></li>

          </ul>

          </span> 条记录</span>

        </div>

        <div class="pull-right pagination-roll">

        <ul class="pagination pagination-outline">

          <li class="paginate_button <if condition=" $count.pageNo eq 1"> previous disabled </if>"><a href="javascript:" onClick="page(1,{$count.pageSize},'');"><i class="fa fa-angle-double-left"></i></a></li>

          <li class="paginate_button <if condition=" $count.pageNo eq 1"> previous disabled </if>"><a href="javascript:" onClick="page({$count.pageNo}-1,{$count.pageSize},'');"><i class="fa fa-angle-left"></i></a></li>

           <if condition=" $count.countpage gt 10 "> 

            <if condition=" $count.pageNo lt 5 "> 

              <li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==1)?'current':'' ?>">1</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(2,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==2)?'current':'' ?>">2</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(3,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==3)?'current':'' ?>">3</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(4,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==4)?'current':'' ?>">4</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(5,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==5)?'current':'' ?>">5</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(6,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==6)?'current':'' ?>">6</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(7,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==7)?'current':'' ?>">7</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(8,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==8)?'current':'' ?>">8</a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');">{$count.countpage}</a></li>

            <elseif condition="$count.pageNo lt $count.num and $count.pageNo egt 5"/>

              <li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');">1</a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-3; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-3; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-2; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-2; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-1; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-1; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page({$count.pageNo},{$count.pageSize},'');" id='current'><?php echo $count['pageNo']; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+1; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+1; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+2; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+2; ?></a></li> 

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+3; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+3; ?></a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');">{$count.countpage}</a></li>

            <else />

              <li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');">1</a></li>

              <li class="paginate_button disabled"><a href="javascript:">...</a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-4; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-4))?'current':'' ?>"><?php echo $count['countpage']-4; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-3; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-3))?'current':'' ?>"><?php echo $count['countpage']-3; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-2; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-2))?'current':'' ?>"><?php echo $count['countpage']-2; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-1; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-1))?'current':'' ?>"><?php echo $count['countpage']-1; ?></a></li>

              <li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==$count['countpage'])?'current':'' ?>"><?php echo $count['countpage']; ?></a></li>

            </if>

          <else />

            <for start="0" end="$count.countpage" name='i'>



              <li class="paginate_button <if condition=" $count.pageNo eq $i+1"> previous disabled </if>"><a href="javascript:" onClick="page({$i+1},{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($i+1))?'current':'' ?>">{$i+1}</a></li>

            </for>

          </if>

           <li class="paginate_button next <if condition=" $count.pageNo egt $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="<if condition=" $count.pageNo lt $count.countpage ">page({$count.pageNo}+1,{$count.pageSize},'');</if>"><i class="fa fa-angle-right"></i></a></li>

           <li class="paginate_button next <if condition=" $count.pageNo egt $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');"><i class="fa fa-angle-double-right"></i></a></li>

                </ul>

      </div>

    </div>

  <br/>

  <br/>

  </div>

  </div>

</div>

                    </div>

                </div>

            </div>

             

        </div>

         

    </div>

    <script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>

    <script src="__PUBLIC__/js/bootstrap.min14ed.js?v=3.3.6"></script>

    <script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>

    <script src="__PUBLIC__/js/content.mine209.js?v=1.0.0"></script>

    <script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>

    <script src="__PUBLIC__/js/demo/peity-demo.min.js"></script>

  <script src="__PUBLIC__/js/plugins/layer/laydate/laydate.js"></script>

   



    <script>

        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});

     $(document).ready(function () {

    

            $('.check-all').iCheck({

       



                checkboxClass: 'icheckbox_square-green',

                radioClass: 'iradio_square-green',

            });

        });

    

  

  $(document).ready(function() {

    $('.check-all').on('ifChecked', function(event){ //ifCreated 事件应该在插件初始化之前绑定 

        $('.i-checks').iCheck('check');

      });



    $('.check-all').on('ifUnchecked', function(event){ //ifCreated 事件应该在插件初始化之前绑定 

        $('.i-checks').iCheck('uncheck');

      });

	  

	  

	  

	  

	  $('#finish_All').click(function(){

		    tids='';

		    $('.i-checks').each(function(){

				if($(this).prop('checked'))

				{

					tids+=$(this).val()+',';

				}

			 })

			 if(tids=='')

			 {

				 layer.alert('请选择订单');

				 return false

			 }

		    $(this).attr('href','finishAll?tids='+tids);

			

	  }) 

	  

	  

	  $('#daochu_management').click(function(){

		    tids='';

		    $('.i-checks').each(function(){

				if($(this).prop('checked'))

				{

					tids+=$(this).val()+',';

				}

			 })

			 if(tids=='')

			 {

				 layer.alert('请选择产品');

				 return false

			 }

		    $(this).attr('href','daochu_excel?tids='+tids);

			

	  }) 

    

});

    </script>

    <div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/17825721.js"></script>

<noscript><a href="http://www.51.la/?17825721" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17825721.asp" style="border:none" /></a></noscript></div>

</body>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>

</html>

